package org.sn.jdish.designmode.bridge;

public class BridgeMain {

	public static void main(String[] args) {
		Bridge bridge = new MyBridge();

		// invoke the first method
		Sourceable source1 = new SourceSub1();
		bridge.setSource(source1);
		bridge.method();

		// invoke the second method
		Sourceable source2 = new SourceSub2();
		bridge.setSource(source2);
		bridge.method();
	}

}
